//
//  BSUIFamilyResponseList+Category.m
//  SuoSiApp
//
//  Created by zhang on 16/4/27.
//  Copyright © 2016年 Ym. All rights reserved.
//

#import "BSUIFamilyResponseList+Category.h"

#import "BSUIFamily.h"


@implementation BSUIFamilyResponseList (Category)
- (void)dealWithData:(NSData *)data{
    
    NSDictionary *dic = [NSJSONSerialization JSONObjectWithData:data options:(NSJSONReadingMutableContainers) error:nil];
    //    根据收到的data  给自己的属性 赋值
    
//    NSLog(@"%@",dic);
    NSArray *arr = [NSArray arrayWithArray:dic[@"Data"]];
    self.pArr = [[NSMutableArray alloc]init];
    for (int i = 0; i < arr.count; i++) {
        self.pModel = [[BSUIFamily alloc]init];
        [self.pModel setValuesForKeysWithDictionary:arr[i]];
        
        [self.pArr addObject:self.pModel];
    }
    
    
}

@end
